<template>
	<view>
		<!-- <web-view :src="payUrl" /> -->
		<a :href="payUrl">hahha</a>
	</view>
</template>

<script>
	import {createGJ} from '@/utils/api.js'
	export default {
		data() {
			return {
				payUrl:''
			};
		},
		onLoad() {
			let data={order_number:1,product_name:'test',amount:1}
			createGJ(data).then(res=>{
				
				const formHtml =res.data.data.url
				this.payUrl = `data:text/html;base64,${uni.base64ToArrayBuffer(btoa(formHtml))}`
				console.log(this.payUrl,'msgssssssss');
			})
			// window.open(this.url)
		},
	}
</script>

<style lang="scss">

</style>
